package com.huaxin.feignclient.models;


/**
 * 响应码
 *
 * @author
 * @date 2025/04/01
 */
public enum ResponseCode {
    SUCCESS(200, "成功"),
    INTERNAL_ERROR(500, "请求处理失败"),
    BAD_REQUEST(400, "请求参数错误"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "资源未找到"),
    CONFLICT(409, "资源冲突"),
    UNAUTHORIZED_ERROR(401, "未授权"),
    UNPROCESSABLE_ENTITY(422, "无法处理的实体"),
    VERIFICATION_CODE_ERROR(423, "验证码错误");
    private final int code;
    private final String message;

    ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}